GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

twig.ExtensionInterface   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 1
rs 10
cc 1
nc 1
nop 0
1
/*
2
 * Copyright 2011 Johannes M. Schmitt <[email protected]>
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 * http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
17
goog.provide('twig.ExtensionInterface');
0 ignored issues
show
Bug introduced by
The variable goog seems to be never declared. If this is a global, consider adding a /** global: goog */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
18
19
/**
20
 * Interface implemented by extension classes.
21
 *
22
 * @interface
23
 */
24
twig.ExtensionInterface = function() {};
0 ignored issues
show
Bug introduced by
The variable twig seems to be never declared. If this is a global, consider adding a /** global: twig */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
25
26
/**
27
 * Initializes the runtime environment.
28
 *
29
 * This is where you can load some file that contains filter functions for instance.
30
 *
31
 * @param {twig.Environment} environment The current environment instance
32
 */
33
twig.ExtensionInterface.prototype.initRuntime = function(environment) {};
0 ignored issues
show
Bug introduced by
The variable twig seems to be never declared. If this is a global, consider adding a /** global: twig */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
Unused Code introduced by
The parameter environment is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
34
35
/**
36
 * Returns a list of filters to add to the existing list.
37
 *
38
 * @return {Object} An array of filters
39
 */
40
twig.ExtensionInterface.prototype.getFilters = function() {};
0 ignored issues
show
Bug introduced by
The variable twig seems to be never declared. If this is a global, consider adding a /** global: twig */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
41
42
/**
43
 * Returns a list of tests to add to the existing list.
44
 *
45
 * @return {Object} An array of tests
46
 */
47
twig.ExtensionInterface.prototype.getTests = function() {};
0 ignored issues
show
Bug introduced by
The variable twig seems to be never declared. If this is a global, consider adding a /** global: twig */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
48
49
/**
50
 * Returns a list of functions to add to the existing list.
51
 *
52
 * @return {Object} An array of functions
53
 */
54
twig.ExtensionInterface.prototype.getFunctions = function() {};
0 ignored issues
show
Bug introduced by
The variable twig seems to be never declared. If this is a global, consider adding a /** global: twig */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
55
56
/**
57
 * Returns a list of global variables to add to the existing list.
58
 *
59
 * @return {Object} An array of global variables
60
 */
61
twig.ExtensionInterface.prototype.getGlobals = function() {};
0 ignored issues
show
Bug introduced by
The variable twig seems to be never declared. If this is a global, consider adding a /** global: twig */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
62
63
/**
64
 * Returns the name of the extension.
65
 *
66
 * @return {string} The extension name
67
 */
68
twig.ExtensionInterface.prototype.getName = function() {};
0 ignored issues
show
Bug introduced by
The variable twig seems to be never declared. If this is a global, consider adding a /** global: twig */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
69